package com.mazihao.emos.service;

import com.mazihao.emos.db.pojo.*;

import java.util.HashMap;
import java.util.List;

public interface MessageService {

    public void insertMessage(TbMessage message);

    public List<TbMessage> searchMessageByPage(int userId);

    public TbMessage searchMessageById(String id);

    public TbMessageRef searchMessageRefByMessageId(String messageId, int userId);

    public void insertRef(TbMessageRef messageRef);

    public long searchUnreadCount(int userId);

    public long searchLastCount(int userId);

    public long updateUnreadMessage(String id, int userId);

    public long deleteMessageRefById(String id);

    public long deleteUserMessageRef(int userId);



}
